package com.sg.service.biz.bff.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.dto.integration.component.BatchQueryDmAttRelaComReqDto;
import com.sg.dto.integration.component.BatchQueryDmAttRelaComRespDto;
import com.sg.dto.integration.component.BatchQueryUnstructuredRelationshipComReqDto;
import com.sg.dto.integration.component.BatchQueryUnstructuredRelationshipComRespDto;
import com.sg.dto.integration.framework.BatchQueryDeptComBorderReqDto;
import com.sg.dto.integration.framework.BatchQueryDeptComBorderRespDto;
import com.sg.dto.integration.framework.BatchQueryMemberProfileListByIdsComReqDto;
import com.sg.dto.integration.framework.BatchQueryMemberProfileListByIdsComRespDto;
import com.sg.service.biz.bff.SmallCircleCommonService;
import com.wicket.okrapp.integration.*;
import com.wicket.okrapp.integration.dto.*;
import com.sg.common.exception.Assert;
import com.wicket.okrcomponent.integration.UnstructuredDataService;
import com.wicket.okrframework.integration.MemberService;
import com.wicket.okrframework.integration.OrgService;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class SmallCircleCommonServiceImpl implements SmallCircleCommonService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    com.sg.service.biz.app.SmallCircleCommonService fwAppSmallCircleCommonClient;

    @Resource
    com.sg.service.biz.component.UnstructuredDataService fwCompUnstructuredDataClient;

    @Resource
    com.sg.service.biz.app.IndexSystemService fwAppIndexSystemClient;

    @Resource
    com.sg.service.biz.app.DivineDataService fwAppDivineDataClient;

    @Resource
    com.sg.service.biz.app.TaskService fwAppTaskClient;

    @Resource
    com.sg.service.biz.app.WorkTasksService fwAppWorkTasksClient;
    @Resource
    com.sg.service.biz.app.EvaThemeService fwAppEvaThemeClient;
    @Resource
    com.sg.service.biz.framework.OrgService fwBaseOrgClient;
    @Resource
    com.sg.service.biz.framework.MemberService fwBaseMemberClient;

    /**
     * B3查询部门所在圈子内容列表(管理)[8836]
     * gen by moon at 3/27/2024, 10:56:20 PM
     */
    @Trace(operationName = "B3查询部门所在圈子内容列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryDeptCircleContentListRespDto queryDeptCircleContentList(BffQueryDeptCircleContentListReqDto reqDto) {


        ImplementReceiveContentIdComRespDto implementReceiveContentIdComRespDto_1 = null;
        if ((reqDto != null && reqDto.getUseScene() != null && reqDto.getUseScene().equals("TARGET_PLAN_SCENE") && reqDto != null && reqDto.getTableTypeCode() != null && reqDto.getTableTypeCode().equals("OMS_TARGET_CATEGORY"))) {
            //if((B3查询部门所在圈子内容列表(管理).虚拟组织使用场景 等于 目标规划场景 and B3查询部门所在圈子内容列表(管理).冗余内容表类型编码 等于 目标分类表))  65311

            QueryDeptSmallCircleListComRespDto queryDeptSmallCircleListComRespDto = null;
            QueryDeptSmallCircleListComReqDto queryDeptSmallCircleListComReqDto = new QueryDeptSmallCircleListComReqDto();
            queryDeptSmallCircleListComReqDto.setIsDisplay("TRUE");//sourceId:1660935_1_65331
            queryDeptSmallCircleListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660936_1_65331
            if (reqDto != null) {
                queryDeptSmallCircleListComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1660931_1_65331
                queryDeptSmallCircleListComReqDto.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1660934_1_65331
                queryDeptSmallCircleListComReqDto.setEvaluationTemplateType(reqDto.getEvaluationTemplateType());//SimpleFieldAssign//sourceId:1660939_1_65331
                queryDeptSmallCircleListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1660933_1_65331
                queryDeptSmallCircleListComReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1660938_1_65331
            }

            /*D3查询我部门所在小圈子列表(公共)[8806]   */
            Assert.isNull(queryDeptSmallCircleListComReqDto.getUseScene(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-虚拟组织使用场景不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto.getIsDisplay(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-是否外部展示不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto.getSubjectLifeCycle(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-主体生命周期不能为空", false);
            queryDeptSmallCircleListComRespDto = fwAppSmallCircleCommonClient.queryDeptSmallCircleListCom(queryDeptSmallCircleListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            BatchQueryUnstructuredRelationshipComRespDto batchQueryUnstructuredRelationshipComRespDto = null;
            if (queryDeptSmallCircleListComRespDto != null) {
                BatchQueryUnstructuredRelationshipComReqDto batchQueryUnstructuredRelationshipComReqDto = new BatchQueryUnstructuredRelationshipComReqDto();
                if (queryDeptSmallCircleListComRespDto != null && queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList())) {
                    batchQueryUnstructuredRelationshipComReqDto.setUnstructuredRelationshipList(queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList().stream().map(item -> item.getEntityId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660919_1_65319
                }

                /*D2批量查询文档关系By父内容id(公共)[8833]   */

                batchQueryUnstructuredRelationshipComRespDto = fwCompUnstructuredDataClient.batchQueryUnstructuredRelationshipCom(batchQueryUnstructuredRelationshipComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            BatchQueryTargetCatComRespDto batchQueryTargetCatComRespDto = null;
            if (batchQueryUnstructuredRelationshipComRespDto != null) {
                BatchQueryTargetCatComReqDto batchQueryTargetCatComReqDto = new BatchQueryTargetCatComReqDto();
                if (batchQueryUnstructuredRelationshipComRespDto != null) {
                    batchQueryTargetCatComReqDto.setTargetCatList(batchQueryUnstructuredRelationshipComRespDto.getUnstructuredRelationshipList());//list-field-assign//sourceId:1660877_1_65323
                }

                /*D3批量查询目标分类(公共)[8827]   */

                batchQueryTargetCatComRespDto = fwAppIndexSystemClient.batchQueryTargetCatCom(batchQueryTargetCatComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            ImplementReceiveContentIdComRespDto implementReceiveContentIdComRespDto = null;
            if (batchQueryTargetCatComRespDto != null) {
                ImplementReceiveContentIdComReqDto implementReceiveContentIdComReqDto = new ImplementReceiveContentIdComReqDto();
                if (batchQueryTargetCatComRespDto != null && batchQueryTargetCatComRespDto.getTargetCatList() != null && !CollectionUtil.isEmpty(batchQueryTargetCatComRespDto.getTargetCatList())) {
                    implementReceiveContentIdComReqDto.setEntityIdList(//objList-to-objLists
                            batchQueryTargetCatComRespDto.getTargetCatList().stream().map(item -> {
                                EntityIdDto elm = new EntityIdDto();
                                if (item != null) {
                                    elm.setOwnEntityId(item.getTargetCategoryId());//SimpleFieldAssign//sourceId:319658_2_65327
                                    elm.setCustomField(item.getTargetCategoryName());//SimpleFieldAssign//sourceId:319659_2_65327
                                }
                                return elm;
                            }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660924_1_65327
                }

                /*D3执行接收内容表主键id(公共)[8835]   */

                implementReceiveContentIdComRespDto = fwAppDivineDataClient.implementReceiveContentIdCom(implementReceiveContentIdComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                implementReceiveContentIdComRespDto_1 = implementReceiveContentIdComRespDto;
            }
        } else if ((reqDto != null && reqDto.getUseScene() != null && reqDto.getUseScene().equals("TARGET_PLAN_SCENE") && reqDto != null && reqDto.getTableTypeCode() != null && reqDto.getTableTypeCode().equals("OMS_TARGET_OBJECTIVE"))) {
            //elseif((B3查询部门所在圈子内容列表(管理).虚拟组织使用场景 等于 目标规划场景 and B3查询部门所在圈子内容列表(管理).冗余内容表类型编码 等于 指标表))  65312

            QueryDeptSmallCircleListComRespDto queryDeptSmallCircleListComRespDto_2 = null;
            QueryDeptSmallCircleListComReqDto queryDeptSmallCircleListComReqDto_1 = new QueryDeptSmallCircleListComReqDto();
            queryDeptSmallCircleListComReqDto_1.setIsDisplay("TRUE");//sourceId:1660935_1_65332
            queryDeptSmallCircleListComReqDto_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660936_1_65332
            if (reqDto != null) {
                queryDeptSmallCircleListComReqDto_1.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1660931_1_65332
                queryDeptSmallCircleListComReqDto_1.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1660934_1_65332
                queryDeptSmallCircleListComReqDto_1.setEvaluationTemplateType(reqDto.getEvaluationTemplateType());//SimpleFieldAssign//sourceId:1660939_1_65332
                queryDeptSmallCircleListComReqDto_1.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1660933_1_65332
                queryDeptSmallCircleListComReqDto_1.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1660938_1_65332
            }

            /*D3查询我部门所在小圈子列表(公共)[8806]   */
            Assert.isNull(queryDeptSmallCircleListComReqDto_1.getUseScene(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-虚拟组织使用场景不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto_1.getIsDisplay(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-是否外部展示不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto_1.getSubjectLifeCycle(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-主体生命周期不能为空", false);
            queryDeptSmallCircleListComRespDto_2 = fwAppSmallCircleCommonClient.queryDeptSmallCircleListCom(queryDeptSmallCircleListComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


            BatchQueryUnstructuredRelationshipComRespDto batchQueryUnstructuredRelationshipComRespDto_2 = null;
            if (queryDeptSmallCircleListComRespDto_2 != null) {
                BatchQueryUnstructuredRelationshipComReqDto batchQueryUnstructuredRelationshipComReqDto_1 = new BatchQueryUnstructuredRelationshipComReqDto();
                if (queryDeptSmallCircleListComRespDto_2 != null && queryDeptSmallCircleListComRespDto_2.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryDeptSmallCircleListComRespDto_2.getVirtualOrgMemberDeptList())) {
                    batchQueryUnstructuredRelationshipComReqDto_1.setUnstructuredRelationshipList(queryDeptSmallCircleListComRespDto_2.getVirtualOrgMemberDeptList().stream().map(item -> item.getEntityId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660919_1_65320
                }

                /*D2批量查询文档关系By父内容id(公共)[8833]   */

                batchQueryUnstructuredRelationshipComRespDto_2 = fwCompUnstructuredDataClient.batchQueryUnstructuredRelationshipCom(batchQueryUnstructuredRelationshipComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            BatchQueryTargetObjComRespDto batchQueryTargetObjComRespDto = null;
            if (batchQueryUnstructuredRelationshipComRespDto_2 != null) {
                BatchQueryTargetObjComReqDto batchQueryTargetObjComReqDto = new BatchQueryTargetObjComReqDto();
                if (batchQueryUnstructuredRelationshipComRespDto_2 != null) {
                    batchQueryTargetObjComReqDto.setTargetObjList(batchQueryUnstructuredRelationshipComRespDto_2.getUnstructuredRelationshipList());//list-field-assign//sourceId:1660879_1_65324
                }

                /*D3批量查询指标(公共)[8829]   */

                batchQueryTargetObjComRespDto = fwAppIndexSystemClient.batchQueryTargetObjCom(batchQueryTargetObjComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            ImplementReceiveContentIdComRespDto implementReceiveContentIdComRespDto_2 = null;
            if (batchQueryTargetObjComRespDto != null) {
                ImplementReceiveContentIdComReqDto implementReceiveContentIdComReqDto_1 = new ImplementReceiveContentIdComReqDto();
                if (batchQueryTargetObjComRespDto != null && batchQueryTargetObjComRespDto.getTargetObjList() != null && !CollectionUtil.isEmpty(batchQueryTargetObjComRespDto.getTargetObjList())) {
                    implementReceiveContentIdComReqDto_1.setEntityIdList(//objList-to-objLists
                            batchQueryTargetObjComRespDto.getTargetObjList().stream().map(item -> {
                                EntityIdDto elm = new EntityIdDto();
                                if (item != null) {
                                    elm.setOwnEntityId(item.getObjectiveId());//SimpleFieldAssign//sourceId:319658_2_65328
                                    elm.setCustomField(item.getObjectiveShortName());//SimpleFieldAssign//sourceId:319659_2_65328
                                }
                                return elm;
                            }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660924_1_65328
                }

                /*D3执行接收内容表主键id(公共)[8835]   */

                implementReceiveContentIdComRespDto_2 = fwAppDivineDataClient.implementReceiveContentIdCom(implementReceiveContentIdComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


                implementReceiveContentIdComRespDto_1 = implementReceiveContentIdComRespDto_2;
            }
        } else if ((reqDto != null && reqDto.getUseScene() != null && reqDto.getUseScene().equals("WORK_TASK_SCENE") && reqDto != null && reqDto.getTableTypeCode() != null && reqDto.getTableTypeCode().equals("OMS_TASK"))) {
            //elseif((B3查询部门所在圈子内容列表(管理).虚拟组织使用场景 等于 工作任务场景 and B3查询部门所在圈子内容列表(管理).冗余内容表类型编码 等于 任务表))  65313

            QueryDeptSmallCircleListComRespDto queryDeptSmallCircleListComRespDto_3 = null;
            QueryDeptSmallCircleListComReqDto queryDeptSmallCircleListComReqDto_2 = new QueryDeptSmallCircleListComReqDto();
            queryDeptSmallCircleListComReqDto_2.setIsDisplay("TRUE");//sourceId:1660935_1_65333
            queryDeptSmallCircleListComReqDto_2.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660936_1_65333
            if (reqDto != null) {
                queryDeptSmallCircleListComReqDto_2.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1660931_1_65333
                queryDeptSmallCircleListComReqDto_2.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1660934_1_65333
                queryDeptSmallCircleListComReqDto_2.setEvaluationTemplateType(reqDto.getEvaluationTemplateType());//SimpleFieldAssign//sourceId:1660939_1_65333
                queryDeptSmallCircleListComReqDto_2.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1660933_1_65333
                queryDeptSmallCircleListComReqDto_2.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1660938_1_65333
            }

            /*D3查询我部门所在小圈子列表(公共)[8806]   */
            Assert.isNull(queryDeptSmallCircleListComReqDto_2.getUseScene(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-虚拟组织使用场景不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto_2.getIsDisplay(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-是否外部展示不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto_2.getSubjectLifeCycle(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-主体生命周期不能为空", false);
            queryDeptSmallCircleListComRespDto_3 = fwAppSmallCircleCommonClient.queryDeptSmallCircleListCom(queryDeptSmallCircleListComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;


            BatchQueryDmAttRelaComRespDto batchQueryDmAttRelaComRespDto = null;
            if (queryDeptSmallCircleListComRespDto_3 != null) {
                BatchQueryDmAttRelaComReqDto batchQueryDmAttRelaComReqDto = new BatchQueryDmAttRelaComReqDto();
                if (queryDeptSmallCircleListComRespDto_3 != null && queryDeptSmallCircleListComRespDto_3.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryDeptSmallCircleListComRespDto_3.getVirtualOrgMemberDeptList())) {
                    batchQueryDmAttRelaComReqDto.setUnstructuredRelationshipList(queryDeptSmallCircleListComRespDto_3.getVirtualOrgMemberDeptList().stream().map(item -> item.getEntityId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660921_1_65321
                }

                /*D2批量查询文档关系By归属内容表主键id(公共)[8834]   */

                batchQueryDmAttRelaComRespDto = fwCompUnstructuredDataClient.batchQueryDmAttRelaCom(batchQueryDmAttRelaComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            BatchQueryTaskComRespDto batchQueryTaskComRespDto = null;
            BatchQueryTaskComReqDto batchQueryTaskComReqDto = new BatchQueryTaskComReqDto();


            /*D3-批量查询任务列表(公共)[6195]   */

            batchQueryTaskComRespDto = fwAppTaskClient.batchQueryTaskCom(batchQueryTaskComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            ImplementReceiveContentIdComRespDto implementReceiveContentIdComRespDto_3 = null;
            if (batchQueryTaskComRespDto != null) {
                ImplementReceiveContentIdComReqDto implementReceiveContentIdComReqDto_2 = new ImplementReceiveContentIdComReqDto();
                if (batchQueryTaskComRespDto != null && batchQueryTaskComRespDto.getReportingTaskList() != null && !CollectionUtil.isEmpty(batchQueryTaskComRespDto.getReportingTaskList())) {
                    implementReceiveContentIdComReqDto_2.setEntityIdList(//objList-to-objLists
                            batchQueryTaskComRespDto.getReportingTaskList().stream().map(item -> {
                                EntityIdDto elm = new EntityIdDto();
                                if (item != null) {
                                    elm.setOwnEntityId(item.getTaskId());//SimpleFieldAssign//sourceId:319658_2_65329
                                    elm.setCustomField(item.getTaskName());//SimpleFieldAssign//sourceId:319659_2_65329
                                }
                                return elm;
                            }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660924_1_65329
                }

                /*D3执行接收内容表主键id(公共)[8835]   */

                implementReceiveContentIdComRespDto_3 = fwAppDivineDataClient.implementReceiveContentIdCom(implementReceiveContentIdComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;


                implementReceiveContentIdComRespDto_1 = implementReceiveContentIdComRespDto_3;
            }
        } else if ((reqDto != null && reqDto.getUseScene() != null && reqDto.getUseScene().equals("WORK_TASK_SCENE") && reqDto != null && reqDto.getTableTypeCode() != null && reqDto.getTableTypeCode().equals("OMS_QUESTION"))) {
            //elseif((B3查询部门所在圈子内容列表(管理).虚拟组织使用场景 等于 工作任务场景 and B3查询部门所在圈子内容列表(管理).冗余内容表类型编码 等于 问题表))  65314

            QueryDeptSmallCircleListComRespDto queryDeptSmallCircleListComRespDto_4 = null;
            QueryDeptSmallCircleListComReqDto queryDeptSmallCircleListComReqDto_3 = new QueryDeptSmallCircleListComReqDto();
            queryDeptSmallCircleListComReqDto_3.setIsDisplay("TRUE");//sourceId:1660935_1_65334
            queryDeptSmallCircleListComReqDto_3.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660936_1_65334
            if (reqDto != null) {
                queryDeptSmallCircleListComReqDto_3.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1660931_1_65334
                queryDeptSmallCircleListComReqDto_3.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1660934_1_65334
                queryDeptSmallCircleListComReqDto_3.setEvaluationTemplateType(reqDto.getEvaluationTemplateType());//SimpleFieldAssign//sourceId:1660939_1_65334
                queryDeptSmallCircleListComReqDto_3.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1660933_1_65334
                queryDeptSmallCircleListComReqDto_3.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1660938_1_65334
            }

            /*D3查询我部门所在小圈子列表(公共)[8806]   */
            Assert.isNull(queryDeptSmallCircleListComReqDto_3.getUseScene(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-虚拟组织使用场景不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto_3.getIsDisplay(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-是否外部展示不能为空", false);
            Assert.isNull(queryDeptSmallCircleListComReqDto_3.getSubjectLifeCycle(), "B3查询部门所在圈子内容列表(管理)-D3查询我部门所在小圈子列表(公共)-主体生命周期不能为空", false);
            queryDeptSmallCircleListComRespDto_4 = fwAppSmallCircleCommonClient.queryDeptSmallCircleListCom(queryDeptSmallCircleListComReqDto_3).getData()/*vcase invoke 跨dubbo调用;*/;


            BatchQueryDmAttRelaComRespDto batchQueryDmAttRelaComRespDto_2 = null;
            if (queryDeptSmallCircleListComRespDto_4 != null) {
                BatchQueryDmAttRelaComReqDto batchQueryDmAttRelaComReqDto_1 = new BatchQueryDmAttRelaComReqDto();
                if (queryDeptSmallCircleListComRespDto_4 != null && queryDeptSmallCircleListComRespDto_4.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryDeptSmallCircleListComRespDto_4.getVirtualOrgMemberDeptList())) {
                    batchQueryDmAttRelaComReqDto_1.setUnstructuredRelationshipList(queryDeptSmallCircleListComRespDto_4.getVirtualOrgMemberDeptList().stream().map(item -> item.getEntityId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660921_1_65322
                }

                /*D2批量查询文档关系By归属内容表主键id(公共)[8834]   */

                batchQueryDmAttRelaComRespDto_2 = fwCompUnstructuredDataClient.batchQueryDmAttRelaCom(batchQueryDmAttRelaComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            BatchQueryQuestionComRespDto batchQueryQuestionComRespDto = null;
            if (batchQueryDmAttRelaComRespDto_2 != null) {
                BatchQueryQuestionComReqDto batchQueryQuestionComReqDto = new BatchQueryQuestionComReqDto();
                if (queryDeptSmallCircleListComRespDto_4 != null && queryDeptSmallCircleListComRespDto_4.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryDeptSmallCircleListComRespDto_4.getVirtualOrgMemberDeptList())) {
                    batchQueryQuestionComReqDto.setQuestionList(queryDeptSmallCircleListComRespDto_4.getVirtualOrgMemberDeptList().stream().map(item -> item.getEntityId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660897_1_65326
                }

                /*D3批量查询问题(公共)[8830]   */

                batchQueryQuestionComRespDto = fwAppWorkTasksClient.batchQueryQuestionCom(batchQueryQuestionComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
            ImplementReceiveContentIdComRespDto implementReceiveContentIdComRespDto_4 = null;
            if (batchQueryQuestionComRespDto != null) {
                ImplementReceiveContentIdComReqDto implementReceiveContentIdComReqDto_3 = new ImplementReceiveContentIdComReqDto();
                if (batchQueryQuestionComRespDto != null && batchQueryQuestionComRespDto.getQuestionList() != null && !CollectionUtil.isEmpty(batchQueryQuestionComRespDto.getQuestionList())) {
                    implementReceiveContentIdComReqDto_3.setEntityIdList(//objList-to-objLists
                            batchQueryQuestionComRespDto.getQuestionList().stream().map(item -> {
                                EntityIdDto elm = new EntityIdDto();
                                if (item != null) {
                                    elm.setOwnEntityId(item.getQuestionId());//SimpleFieldAssign//sourceId:319658_2_65330
                                    elm.setCustomField(item.getQuestionIntroduce());//SimpleFieldAssign//sourceId:319659_2_65330
                                }
                                return elm;
                            }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660924_1_65330
                }

                /*D3执行接收内容表主键id(公共)[8835]   */

                implementReceiveContentIdComRespDto_4 = fwAppDivineDataClient.implementReceiveContentIdCom(implementReceiveContentIdComReqDto_3).getData()/*vcase invoke 跨dubbo调用;*/;


                implementReceiveContentIdComRespDto_1 = implementReceiveContentIdComRespDto_4;
            }
        }
        BffQueryDeptCircleContentListRespDto retData = new BffQueryDeptCircleContentListRespDto();
        if (implementReceiveContentIdComRespDto_1 != null) {
            retData.setEntityIdList(//objList-to-objLists
                    implementReceiveContentIdComRespDto_1.getEntityIdList().stream().map(item -> {
                        BffEntityIdDto elm = new BffEntityIdDto();
                        if (item != null) {
                            elm.setContentId(item.getOwnEntityId());//SimpleFieldAssign//sourceId:319676_2
                            elm.setContentName(item.getCustomField());//SimpleFieldAssign//sourceId:319677_2
                        }
                        return elm;
                    }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660949_1
        }


        return retData;
    }

    /**
     * B3查询我相关的评价模板列表(管理)[8815]
     * gen by moon at 12/31/2024, 2:26:08 AM
     */
    @Trace(operationName = "B3查询我相关的评价模板列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryMyEvaluationListRespDto queryMyEvaluationList(BffQueryMyEvaluationListReqDto reqDto) {


        BatchQueryEvaTempComRespDto batchQueryEvaTempComRespDto_1 = null;
//步骤0: D3查询我相关的主题内容列表(公共) - queryMyRelateThemeConListCom
        QueryMyRelateThemeConListComRespDto queryMyRelateThemeConListComRespDto = null;
        QueryMyRelateThemeConListComReqDto queryMyRelateThemeConListComReqDto = new QueryMyRelateThemeConListComReqDto();
        queryMyRelateThemeConListComReqDto.setUseScene("TARGET_PLAN_SCENE");//sourceId:1660234_1
        queryMyRelateThemeConListComReqDto.setEvaluationTemplateType("EVA_TEMP");//sourceId:1660235_1
        if (reqDto != null) {
            queryMyRelateThemeConListComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1660233_1
        }

        /*D3查询我相关的主题内容列表(公共)[8812]   */
        Assert.isNull(queryMyRelateThemeConListComReqDto.getOriginalRoleMemberId(), "B3查询我相关的评价模板列表(管理)-D3查询我相关的主题内容列表(公共)-身份人员ID不能为空", false);
        Assert.isNull(queryMyRelateThemeConListComReqDto.getUseScene(), "B3查询我相关的评价模板列表(管理)-D3查询我相关的主题内容列表(公共)-虚拟组织使用场景不能为空", false);
        Assert.isNull(queryMyRelateThemeConListComReqDto.getEvaluationTemplateType(), "B3查询我相关的评价模板列表(管理)-D3查询我相关的主题内容列表(公共)-归属对象类型不能为空", false);
        queryMyRelateThemeConListComRespDto = fwAppSmallCircleCommonClient.queryMyRelateThemeConListCom(queryMyRelateThemeConListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤1: D3-2批量查询评价模板(公共) - batchQueryEvaTempCom
        BatchQueryEvaTempComRespDto batchQueryEvaTempComRespDto = null;
        if (queryMyRelateThemeConListComRespDto != null) {
            BatchQueryEvaTempComReqDto batchQueryEvaTempComReqDto = new BatchQueryEvaTempComReqDto();
            batchQueryEvaTempComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660249_1
            if (queryMyRelateThemeConListComRespDto != null) {
                batchQueryEvaTempComReqDto.setEvalTempList(queryMyRelateThemeConListComRespDto.getThemeDudptMyRelateThemeConList());//list-field-assign//sourceId:1660247_1
            }

            /*D3-2批量查询评价模板(公共)[3074]   */
            Assert.isNull(batchQueryEvaTempComReqDto.getSubjectLifeCycle(), "B3查询我相关的评价模板列表(管理)-D3-2批量查询评价模板(公共)-主体生命周期不能为空", false);
            batchQueryEvaTempComRespDto = fwAppEvaThemeClient.batchQueryEvaTempCom(batchQueryEvaTempComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryEvaTempComRespDto_1 = batchQueryEvaTempComRespDto;
        }

        BffQueryMyEvaluationListRespDto retData = new BffQueryMyEvaluationListRespDto();
        if (batchQueryEvaTempComRespDto_1 != null) {
            retData.setEvalTempList(batchQueryEvaTempComRespDto_1.getEvalTempList().stream().map(item -> BeanUtil.toBean(item, BffEvalTempDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660295_1
        }


        return retData;
    }

    /**
     * B3查询评价模板下的部门列表(管理)[8818]
     * gen by moon at 5/12/2024, 2:41:31 AM
     */
    @Trace(operationName = "B3查询评价模板下的部门列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryDeptOfEvalutionListRespDto queryDeptOfEvalutionList(BffQueryDeptOfEvalutionListReqDto reqDto) {


        BatchQueryDeptComBorderRespDto batchQueryDeptComBorderRespDto_1 = null;
//步骤0: D3查询我部门所在小圈子列表(公共) - queryDeptSmallCircleListCom
        QueryDeptSmallCircleListComRespDto queryDeptSmallCircleListComRespDto = null;
        QueryDeptSmallCircleListComReqDto queryDeptSmallCircleListComReqDto = new QueryDeptSmallCircleListComReqDto();
        queryDeptSmallCircleListComReqDto.setIsDisplay("TRUE");//sourceId:1660479_1
        queryDeptSmallCircleListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660480_1
        queryDeptSmallCircleListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1790390_1
        if (reqDto != null) {
            queryDeptSmallCircleListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1660495_1
            queryDeptSmallCircleListComReqDto.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1660478_1
            queryDeptSmallCircleListComReqDto.setDeptType(reqDto.getDeptType());//SimpleFieldAssign//sourceId:1660476_1
        }

        /*D3查询我部门所在小圈子列表(公共)[8806]   */
        Assert.isNull(queryDeptSmallCircleListComReqDto.getEvaluationTemplateId(), "B3查询评价模板下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-归属对象ID不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getUseScene(), "B3查询评价模板下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-虚拟组织使用场景不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getDeptType(), "B3查询评价模板下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-部门类型编码不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getIsDisplay(), "B3查询评价模板下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-是否外部展示不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getSubjectLifeCycle(), "B3查询评价模板下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getSpaceId(), "B3查询评价模板下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-创建于空间ID不能为空", false);
        queryDeptSmallCircleListComRespDto = fwAppSmallCircleCommonClient.queryDeptSmallCircleListCom(queryDeptSmallCircleListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤1: D1-3批量查部门(公共)(边界) - batchQueryDeptComBorder
        BatchQueryDeptComBorderRespDto batchQueryDeptComBorderRespDto = null;
        if (queryDeptSmallCircleListComRespDto != null) {
            BatchQueryDeptComBorderReqDto batchQueryDeptComBorderReqDto = new BatchQueryDeptComBorderReqDto();
            if (queryDeptSmallCircleListComRespDto != null && queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList())) {
                batchQueryDeptComBorderReqDto.setDeptList(queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList().stream().map(item -> item.getDeptId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660497_1
            }
            if (reqDto != null) {
                batchQueryDeptComBorderReqDto.setLevelNumber(reqDto.getLevelNumber());//SimpleFieldAssign//sourceId:1660498_1
            }

            /*D1-3批量查部门(公共)(边界)[2568]   */

            batchQueryDeptComBorderRespDto = fwBaseOrgClient.batchQueryDeptComBorder(batchQueryDeptComBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryDeptComBorderRespDto_1 = batchQueryDeptComBorderRespDto;
        }

        BffQueryDeptOfEvalutionListRespDto retData = new BffQueryDeptOfEvalutionListRespDto();
        if (batchQueryDeptComBorderRespDto_1 != null) {
            retData.setDeptList(batchQueryDeptComBorderRespDto_1.getDeptList().stream().map(item -> BeanUtil.toBean(item, BffDeptDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660506_1
        }


        return retData;
    }

    /**
     * B3查询虚拟组织下的部门列表(管理)[8822]
     * gen by moon at 5/12/2024, 2:41:32 AM
     */
    @Trace(operationName = "B3查询虚拟组织下的部门列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryDeptOfVirtualOrgListRespDto queryDeptOfVirtualOrgList(BffQueryDeptOfVirtualOrgListReqDto reqDto) {


        BatchQueryDeptComBorderRespDto batchQueryDeptComBorderRespDto_1 = null;
//步骤0: D3查询我部门所在小圈子列表(公共) - queryDeptSmallCircleListCom
        QueryDeptSmallCircleListComRespDto queryDeptSmallCircleListComRespDto = null;
        QueryDeptSmallCircleListComReqDto queryDeptSmallCircleListComReqDto = new QueryDeptSmallCircleListComReqDto();
        queryDeptSmallCircleListComReqDto.setIsDisplay("TRUE");//sourceId:1660515_1
        queryDeptSmallCircleListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660516_1
        queryDeptSmallCircleListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1790391_1
        if (reqDto != null) {
            queryDeptSmallCircleListComReqDto.setVirtualOrgId(reqDto.getVirtualOrgId());//SimpleFieldAssign//sourceId:1660510_1
            queryDeptSmallCircleListComReqDto.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1660514_1
        }

        /*D3查询我部门所在小圈子列表(公共)[8806]   */
        Assert.isNull(queryDeptSmallCircleListComReqDto.getUseScene(), "B3查询虚拟组织下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-虚拟组织使用场景不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getIsDisplay(), "B3查询虚拟组织下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-是否外部展示不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getSubjectLifeCycle(), "B3查询虚拟组织下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryDeptSmallCircleListComReqDto.getSpaceId(), "B3查询虚拟组织下的部门列表(管理)-D3查询我部门所在小圈子列表(公共)-创建于空间ID不能为空", false);
        queryDeptSmallCircleListComRespDto = fwAppSmallCircleCommonClient.queryDeptSmallCircleListCom(queryDeptSmallCircleListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤1: D1-3批量查部门(公共)(边界) - batchQueryDeptComBorder
        BatchQueryDeptComBorderRespDto batchQueryDeptComBorderRespDto = null;
        if (queryDeptSmallCircleListComRespDto != null) {
            BatchQueryDeptComBorderReqDto batchQueryDeptComBorderReqDto = new BatchQueryDeptComBorderReqDto();
            if (queryDeptSmallCircleListComRespDto != null && queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList())) {
                batchQueryDeptComBorderReqDto.setDeptList(queryDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList().stream().map(item -> item.getDeptId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660521_1
            }

            /*D1-3批量查部门(公共)(边界)[2568]   */

            batchQueryDeptComBorderRespDto = fwBaseOrgClient.batchQueryDeptComBorder(batchQueryDeptComBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryDeptComBorderRespDto_1 = batchQueryDeptComBorderRespDto;
        }

        BffQueryDeptOfVirtualOrgListRespDto retData = new BffQueryDeptOfVirtualOrgListRespDto();
        if (batchQueryDeptComBorderRespDto_1 != null) {
            retData.setDeptList(batchQueryDeptComBorderRespDto_1.getDeptList().stream().map(item -> BeanUtil.toBean(item, BffDeptDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660530_1
        }


        return retData;
    }

    /**
     * B3查询虚拟组织下的人员列表(管理)[8824]
     * gen by moon at 5/12/2024, 2:41:36 AM
     */
    @Trace(operationName = "B3查询虚拟组织下的人员列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryPersopnOfVirtualOrgListRespDto queryPersopnOfVirtualOrgList(BffQueryPersopnOfVirtualOrgListReqDto reqDto) {


        //步骤0: D3查询我身份所在小圈子列表(公共) - queryIdentitySmallCircleListCom
        QueryIdentitySmallCircleListComRespDto queryIdentitySmallCircleListComRespDto = null;
        QueryIdentitySmallCircleListComReqDto queryIdentitySmallCircleListComReqDto = new QueryIdentitySmallCircleListComReqDto();
        queryIdentitySmallCircleListComReqDto.setIsDisplay("TRUE");//sourceId:1660537_1
        queryIdentitySmallCircleListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1660538_1
        queryIdentitySmallCircleListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1790392_1
        if (reqDto != null) {
            queryIdentitySmallCircleListComReqDto.setVirtualOrgId(reqDto.getVirtualOrgId());//SimpleFieldAssign//sourceId:1660542_1
        }

        /*D3查询我身份所在小圈子列表(公共)[8803]   */
        Assert.isNull(queryIdentitySmallCircleListComReqDto.getVirtualOrgId(), "B3查询虚拟组织下的人员列表(管理)-D3查询我身份所在小圈子列表(公共)-虚拟组织ID不能为空", false);
        Assert.isNull(queryIdentitySmallCircleListComReqDto.getIsDisplay(), "B3查询虚拟组织下的人员列表(管理)-D3查询我身份所在小圈子列表(公共)-是否外部展示不能为空", false);
        Assert.isNull(queryIdentitySmallCircleListComReqDto.getSubjectLifeCycle(), "B3查询虚拟组织下的人员列表(管理)-D3查询我身份所在小圈子列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryIdentitySmallCircleListComReqDto.getSpaceId(), "B3查询虚拟组织下的人员列表(管理)-D3查询我身份所在小圈子列表(公共)-创建于空间ID不能为空", false);
        queryIdentitySmallCircleListComRespDto = fwAppSmallCircleCommonClient.queryIdentitySmallCircleListCom(queryIdentitySmallCircleListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤1: D1批量查成员个人资料列表(公共) - batchQueryMemberProfileListByIdsCom
        BatchQueryMemberProfileListByIdsComRespDto batchQueryMemberProfileListByIdsComRespDto = null;
        if (queryIdentitySmallCircleListComRespDto != null) {
            BatchQueryMemberProfileListByIdsComReqDto batchQueryMemberProfileListByIdsComReqDto = new BatchQueryMemberProfileListByIdsComReqDto();
            if (queryIdentitySmallCircleListComRespDto != null && queryIdentitySmallCircleListComRespDto.getVirtualOrgMemberList() != null && !CollectionUtil.isEmpty(queryIdentitySmallCircleListComRespDto.getVirtualOrgMemberList())) {
                batchQueryMemberProfileListByIdsComReqDto.setBeginMemberList(queryIdentitySmallCircleListComRespDto.getVirtualOrgMemberList().stream().map(item -> item.getOriginalRoleMemberId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660547_1
            }

            /*D1批量查成员个人资料列表(公共)[7492]   */

            batchQueryMemberProfileListByIdsComRespDto = fwBaseMemberClient.batchQueryMemberProfileListByIdsCom(batchQueryMemberProfileListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        }

        BffQueryPersopnOfVirtualOrgListRespDto retData = new BffQueryPersopnOfVirtualOrgListRespDto();


        return retData;
    }

    /**
     * B3查询我下属负责的小圈子列表(管理)[8825]
     * gen by moon at 3/27/2024, 11:15:06 PM
     */
    @Trace(operationName = "B3查询我下属负责的小圈子列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQuerySubordinateChargeSmallCircleListRespDto querySubordinateChargeSmallCircleList(BffQuerySubordinateChargeSmallCircleListReqDto reqDto) {


        BatchQueryMemberProfileListByIdsComRespDto batchQueryMemberProfileListByIdsComRespDto_1 = null;
//步骤0: D3查询我下属负责的小圈子列表(公共) - querySubordinateChargeSmallCircleListCom
        QuerySubordinateChargeSmallCircleListComRespDto querySubordinateChargeSmallCircleListComRespDto = null;
        QuerySubordinateChargeSmallCircleListComReqDto querySubordinateChargeSmallCircleListComReqDto = new QuerySubordinateChargeSmallCircleListComReqDto();
        if (reqDto != null) {
            querySubordinateChargeSmallCircleListComReqDto.setVirtualOrgInductionRecordId(reqDto.getVirtualOrgInductionRecordId());//SimpleFieldAssign//sourceId:1660551_1
            querySubordinateChargeSmallCircleListComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1660552_1
            querySubordinateChargeSmallCircleListComReqDto.setRoleCode(reqDto.getRoleCode());//SimpleFieldAssign//sourceId:1660553_1
            querySubordinateChargeSmallCircleListComReqDto.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1660554_1
            querySubordinateChargeSmallCircleListComReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1660560_1
            querySubordinateChargeSmallCircleListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1660555_1
        }

        /*D3查询我下属负责的小圈子列表(公共)[8805]   */
        Assert.isNull(querySubordinateChargeSmallCircleListComReqDto.getUseScene(), "B3查询我下属负责的小圈子列表(管理)-D3查询我下属负责的小圈子列表(公共)-虚拟组织使用场景不能为空", false);
        querySubordinateChargeSmallCircleListComRespDto = fwAppSmallCircleCommonClient.querySubordinateChargeSmallCircleListCom(querySubordinateChargeSmallCircleListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤1: D1批量查成员个人资料列表(公共) - batchQueryMemberProfileListByIdsCom
        BatchQueryMemberProfileListByIdsComRespDto batchQueryMemberProfileListByIdsComRespDto = null;
        if (querySubordinateChargeSmallCircleListComRespDto != null) {
            BatchQueryMemberProfileListByIdsComReqDto batchQueryMemberProfileListByIdsComReqDto = new BatchQueryMemberProfileListByIdsComReqDto();
            if (querySubordinateChargeSmallCircleListComRespDto != null) {
                batchQueryMemberProfileListByIdsComReqDto.setBeginMemberList(querySubordinateChargeSmallCircleListComRespDto.getIdentityDudepSubordinateChargeSmallCircleList());//list-field-assign//sourceId:1660558_1
            }

            /*D1批量查成员个人资料列表(公共)[7492]   */

            batchQueryMemberProfileListByIdsComRespDto = fwBaseMemberClient.batchQueryMemberProfileListByIdsCom(batchQueryMemberProfileListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryMemberProfileListByIdsComRespDto_1 = batchQueryMemberProfileListByIdsComRespDto;
        }

        BffQuerySubordinateChargeSmallCircleListRespDto retData = new BffQuerySubordinateChargeSmallCircleListRespDto();
        if (batchQueryMemberProfileListByIdsComRespDto_1 != null) {
            retData.setBeginMemberList(batchQueryMemberProfileListByIdsComRespDto_1.getBeginMemberList().stream().map(item -> BeanUtil.toBean(item, BffBeginMemberDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660567_1
        }


        return retData;
    }
    //
}
